#!/bin/bash

# 优化的Chrome启动脚本
# 解决网络卡顿、下载中断、网页刷新问题

google-chrome \
    --user-data-dir=/tmp/chrome-optimized \
    --disable-gpu \
    --disable-software-rasterizer \
    --disable-extensions \
    --disable-plugins \
    --disable-background-timer-throttling \
    --disable-renderer-backgrounding \
    --disable-features=TranslateUI \
    --no-sandbox \
    --disable-setuid-sandbox \
    --disable-dev-shm-usage \
    --disable-accelerated-2d-canvas \
    --no-first-run \
    --disable-default-apps \
    --disable-sync \
    --disable-background-mode \
    --disable-component-update \
    --disable-domain-reliability \
    --disable-features=MediaRouter \
    --disable-ipc-flooding-protection \
    --disable-logging \
    --disable-web-security \
    --aggressive-cache-discard \
    --max-unused-resource-memory-percentage=1 \
    --disable-hang-monitor \
    --disable-prompt-on-repost \
    --disable-renderer-accessibility \
    --disable-restore-session-state \
    --disable-translate \
    --disable-web-resources \
    --enable-low-res-tiling \
    --enable-low-end-device-mode \
    --memory-pressure-off